//index.js
const app = getApp()
Page({
  data: {
    advertising:true,
    time:3,//倒计时 秒
    //开屏广告
  },
 
  myjmp:function()
  {
    this.setData({
      advertising:false
    });
    wx.showTabBar({
      animation:true//动画效果
    });
    clearInterval(this.x);//清除定时器
  },//跳过广告
  onLoad: function() {
    var that=this 
    wx.hideTabBar();// 隐藏底部按钮
 
 
      this.x=setInterval(function() { 
        that.setData({
          time:that.data.time-1
        })
        if(that.data.time==0)
        that.myjmp()
      }, 1000)//每秒执行一次  
    
  },
  
})